<?php
/**
 * 删除note
 */
use Doraemon\tools\Log;
use Doraemon\service\DesignerInfoLib\OperateInfoService as sOperateInfo;

class DelNoteAction extends ActionPlugin {

    public function main() {
        Log::info('删除动态接收到事件信息', $this->messageBody);
        $message = $this->messageBody;
        $uid = $this->messageBody['data']['uid'];
        // 发布动态，更新设计师运营信息库中的动态优质率
        sOperateInfo::updateNoteHighRate($uid);
        Log::info('删除动态接收到的事件', compact('uid', 'message'));
        $this->setSuccess();
    }
}